package system.data;

import java.util.*;

import framework.core.*;
/*
	Author    :Arrow
	CreateTime:2009-06-03 15:30:23
*/
public class ProductBase extends Table 
{
public static final String TABLE_NAME = "T_PRODUCT";

private static final String BACKUP_TABLE_NAME = "T_PRODUCT_BACKUP";

private static final String BACKUP_SEQ_NAME = "S_PRODUCT_BACKUP";


public static final String ID = "ID";

public static final String CONCENTRICITY_CODE = "CONCENTRICITY_CODE";

public static final String APEP_CODE = "APEP_CODE";

public static final String NAME = "NAME";

public static final String CATEGORY_CODE = "CATEGORY_CODE";

public static final String PRODUCT_BRAND = "PRODUCT_BRAND";

public static final String MODEL = "MODEL";

public static final String SPEC = "SPEC";

public static final String UNIT_PRICE = "UNIT_PRICE";

public static final String PRODUCT_UNIT = "PRODUCT_UNIT";

public static final String QUALITY_ASSURE_PERIOD = "QUALITY_ASSURE_PERIOD";

public static final String MANUFATURER = "MANUFATURER";

public static final String AREA = "AREA";

public static final String PROVIDER_CODE = "PROVIDER_CODE";

public static final String ADAPT_MACHINE_TYPE = "ADAPT_MACHINE_TYPE";

public static final String PIC = "PIC";

public static final String RECENT_ADJUSTPRICE_DATE = "RECENT_ADJUSTPRICE_DATE";

public static final String RECENT_ADJUSTED_PRICE = "RECENT_ADJUSTED_PRICE";

public static final String RECORDER_ID = "RECORDER_ID";

public static final String RECORD_DATE = "RECORD_DATE";

public static final String IS_TRADEFLAT_PRODUCT = "IS_TRADEFLAT_PRODUCT";

public static final String APPENDER_PROPERTY = "APPENDER_PROPERTY";

public static final String REMARK = "REMARK";

public static final String DRAWING_PIECE_CODE = "DRAWING_PIECE_CODE";

public static final String BALANCE_MODE = "BALANCE_MODE";

public static final String IS_NORMAL = "IS_NORMAL";

public static final String WAREHOUSE_CODE = "WAREHOUSE_CODE";

public static final String WAREHOUSE_NAME = "WAREHOUSE_NAME";

public static final String IS_BUY = "IS_BUY";

public static final String STATUS = "STATUS";

public static final String CREATE_USER_ID = "CREATE_USER_ID";

public static final String CREATE_USER = "CREATE_USER";

public static final String CREATE_TIME = "CREATE_TIME";

public static final String LAST_UPDATE_USER_ID = "LAST_UPDATE_USER_ID";

public static final String LAST_UPDATE_USER = "LAST_UPDATE_USER";

public static final String LAST_UPDATE_TIME = "LAST_UPDATE_TIME";

public static final String BALANCE_CUSTOMER_CODE = "BALANCE_CUSTOMER_CODE";

public static final String OLD_APEP_CODE = "OLD_APEP_CODE";

public static final String IS_UPDATE = "IS_UPDATE";

public static final String PLAN_PRICE = "PLAN_PRICE";

public static final String AUDITING_STATUS = "AUDITING_STATUS";

public static final String AUDITING_MESSAGE = "AUDITING_MESSAGE";

public static final String KM_QUALITY_ASSURE_PERIOD = "KM_QUALITY_ASSURE_PERIOD";
public static Vector m_fields = null;


private String m_id = ""; //序号

private String m_concentricity_code = ""; //集中编码

private String m_apep_code = ""; //产品编码(18位)

private String m_name = ""; //产品名称

private String m_category_code = ""; //产品分类编码

private String m_product_brand = ""; //品牌

private String m_model = ""; //型号

private String m_spec = ""; //规格

private double m_unit_price = Value.NULL_DOUBLE; //单价

private String m_product_unit = ""; //计量单位

private String m_quality_assure_period = ""; //质保期

private String m_manufaturer = ""; //生产厂家

private String m_area = ""; //产地

private String m_provider_code = ""; //供应商编码

private String m_adapt_machine_type = ""; //适用机型

private String m_pic = ""; //图片

private String m_recent_adjustprice_date = ""; //最近调价时间

private double m_recent_adjusted_price = Value.NULL_DOUBLE; //最近调价价格

private String m_recorder_id = ""; //录入人员账号

private String m_record_date = ""; //产品录入时间

private String m_is_tradeflat_product = ""; //是否交易平台的产品

private String m_appender_property = ""; //产品附加属性

private String m_remark = ""; //备注

private String m_drawing_piece_code = ""; //图件号

private String m_balance_mode = ""; //结算模式

private String m_is_normal = ""; //是否正式产品

private String m_warehouse_code = ""; //仓库编码

private String m_warehouse_name = ""; //仓库名称

private String m_is_buy = ""; //是否可采购

private String m_status = ""; //是否有效

private String m_create_user_id = ""; //创建人序号

private String m_create_user = ""; //创建人

private String m_create_time = ""; //创建时间

private String m_last_update_user_id = ""; //最后修改人序号

private String m_last_update_user = ""; //最后修改人

private String m_last_update_time = ""; //最后修改时间

private String m_balance_customer_code = ""; //BALANCE_CUSTOMER_CODE

private String m_old_apep_code = ""; //OLD_APEP_CODE

private String m_is_update = ""; //IS_UPDATE

private double m_plan_price = Value.NULL_DOUBLE; //PLAN_PRICE

private String m_auditing_status = ""; //审核状态

private String m_auditing_message = ""; //审核意见

private String m_km_quality_assure_period = "";



	public String getId()
	{
	    return m_id;
	}
	public void  setId(String v)
	{
		if(getId().equals(v)) return ;
		m_id = v ;
		markDirty(ID);
	}



	

	public String getConcentricityCode()
	{
	    return m_concentricity_code;
	}
	public void  setConcentricityCode(String v)
	{
		if(getConcentricityCode().equals(v)) return ;
		m_concentricity_code = v ;
		markDirty(CONCENTRICITY_CODE);
	}



	

	public String getApepCode()
	{
	    return m_apep_code;
	}
	public void  setApepCode(String v)
	{
		if(getApepCode().equals(v)) return ;
		m_apep_code = v ;
		markDirty(APEP_CODE);
	}



	

	public String getName()
	{
	    return m_name;
	}
	public void  setName(String v)
	{
		if(getName().equals(v)) return ;
		m_name = v ;
		markDirty(NAME);
	}



	

	public String getCategoryCode()
	{
	    return m_category_code;
	}
	public void  setCategoryCode(String v)
	{
		if(getCategoryCode().equals(v)) return ;
		m_category_code = v ;
		markDirty(CATEGORY_CODE);
	}



	

	public String getProductBrand()
	{
	    return m_product_brand;
	}
	public void  setProductBrand(String v)
	{
		if(getProductBrand().equals(v)) return ;
		m_product_brand = v ;
		markDirty(PRODUCT_BRAND);
	}



	

	public String getModel()
	{
	    return m_model;
	}
	public void  setModel(String v)
	{
		if(getModel().equals(v)) return ;
		m_model = v ;
		markDirty(MODEL);
	}



	

	public String getSpec()
	{
	    return m_spec;
	}
	public void  setSpec(String v)
	{
		if(getSpec().equals(v)) return ;
		m_spec = v ;
		markDirty(SPEC);
	}



	

	public double getUnitPrice()
	{
	    return m_unit_price;
	}
	public void  setUnitPrice(double v)
	{
		if(getUnitPrice()==v) return ;
		m_unit_price = v ;
		markDirty(UNIT_PRICE);
	}



	

	public String getProductUnit()
	{
	    return m_product_unit;
	}
	public void  setProductUnit(String v)
	{
		if(getProductUnit().equals(v)) return ;
		m_product_unit = v ;
		markDirty(PRODUCT_UNIT);
	}



	

	public String getQualityAssurePeriod()
	{
	    return m_quality_assure_period;
	}
	public void  setQualityAssurePeriod(String v)
	{
		if(getQualityAssurePeriod().equals(v)) return ;
		m_quality_assure_period = v ;
		markDirty(QUALITY_ASSURE_PERIOD);
	}



	

	public String getManufaturer()
	{
	    return m_manufaturer;
	}
	public void  setManufaturer(String v)
	{
		if(getManufaturer().equals(v)) return ;
		m_manufaturer = v ;
		markDirty(MANUFATURER);
	}



	

	public String getArea()
	{
	    return m_area;
	}
	public void  setArea(String v)
	{
		if(getArea().equals(v)) return ;
		m_area = v ;
		markDirty(AREA);
	}



	

	public String getProviderCode()
	{
	    return m_provider_code;
	}
	public void  setProviderCode(String v)
	{
		if(getProviderCode().equals(v)) return ;
		m_provider_code = v ;
		markDirty(PROVIDER_CODE);
	}



	

	public String getAdaptMachineType()
	{
	    return m_adapt_machine_type;
	}
	public void  setAdaptMachineType(String v)
	{
		if(getAdaptMachineType().equals(v)) return ;
		m_adapt_machine_type = v ;
		markDirty(ADAPT_MACHINE_TYPE);
	}



	

	public String getPic()
	{
	    return m_pic;
	}
	public void  setPic(String v)
	{
		if(getPic().equals(v)) return ;
		m_pic = v ;
		markDirty(PIC);
	}



	

	public String getRecentAdjustpriceDate()
	{
	    return m_recent_adjustprice_date;
	}
	public void  setRecentAdjustpriceDate(String v)
	{
		if(getRecentAdjustpriceDate().equals(v)) return ;
		m_recent_adjustprice_date = v ;
		markDirty(RECENT_ADJUSTPRICE_DATE);
	}



	

	public double getRecentAdjustedPrice()
	{
	    return m_recent_adjusted_price;
	}
	public void  setRecentAdjustedPrice(double v)
	{
		if(getRecentAdjustedPrice()==v) return ;
		m_recent_adjusted_price = v ;
		markDirty(RECENT_ADJUSTED_PRICE);
	}



	

	public String getRecorderId()
	{
	    return m_recorder_id;
	}
	public void  setRecorderId(String v)
	{
		if(getRecorderId().equals(v)) return ;
		m_recorder_id = v ;
		markDirty(RECORDER_ID);
	}



	

	public String getRecordDate()
	{
	    return m_record_date;
	}
	public void  setRecordDate(String v)
	{
		if(getRecordDate().equals(v)) return ;
		m_record_date = v ;
		markDirty(RECORD_DATE);
	}



	

	public String getIsTradeflatProduct()
	{
	    return m_is_tradeflat_product;
	}
	public void  setIsTradeflatProduct(String v)
	{
		if(getIsTradeflatProduct().equals(v)) return ;
		m_is_tradeflat_product = v ;
		markDirty(IS_TRADEFLAT_PRODUCT);
	}



	

	public String getAppenderProperty()
	{
	    return m_appender_property;
	}
	public void  setAppenderProperty(String v)
	{
		if(getAppenderProperty().equals(v)) return ;
		m_appender_property = v ;
		markDirty(APPENDER_PROPERTY);
	}



	

	public String getRemark()
	{
	    return m_remark;
	}
	public void  setRemark(String v)
	{
		if(getRemark().equals(v)) return ;
		m_remark = v ;
		markDirty(REMARK);
	}



	

	public String getDrawingPieceCode()
	{
	    return m_drawing_piece_code;
	}
	public void  setDrawingPieceCode(String v)
	{
		if(getDrawingPieceCode().equals(v)) return ;
		m_drawing_piece_code = v ;
		markDirty(DRAWING_PIECE_CODE);
	}



	

	public String getBalanceMode()
	{
	    return m_balance_mode;
	}
	public void  setBalanceMode(String v)
	{
		if(getBalanceMode().equals(v)) return ;
		m_balance_mode = v ;
		markDirty(BALANCE_MODE);
	}



	

	public String getIsNormal()
	{
	    return m_is_normal;
	}
	public void  setIsNormal(String v)
	{
		if(getIsNormal().equals(v)) return ;
		m_is_normal = v ;
		markDirty(IS_NORMAL);
	}



	

	public String getWarehouseCode()
	{
	    return m_warehouse_code;
	}
	public void  setWarehouseCode(String v)
	{
		if(getWarehouseCode().equals(v)) return ;
		m_warehouse_code = v ;
		markDirty(WAREHOUSE_CODE);
	}



	

	public String getWarehouseName()
	{
	    return m_warehouse_name;
	}
	public void  setWarehouseName(String v)
	{
		if(getWarehouseName().equals(v)) return ;
		m_warehouse_name = v ;
		markDirty(WAREHOUSE_NAME);
	}



	

	public String getIsBuy()
	{
	    return m_is_buy;
	}
	public void  setIsBuy(String v)
	{
		if(getIsBuy().equals(v)) return ;
		m_is_buy = v ;
		markDirty(IS_BUY);
	}



	

	public String getStatus()
	{
	    return m_status;
	}
	public void  setStatus(String v)
	{
		if(getStatus().equals(v)) return ;
		m_status = v ;
		markDirty(STATUS);
	}



	

	public String getCreateUserId()
	{
	    return m_create_user_id;
	}
	public void  setCreateUserId(String v)
	{
		if(getCreateUserId().equals(v)) return ;
		m_create_user_id = v ;
		markDirty(CREATE_USER_ID);
	}



	

	public String getCreateUser()
	{
	    return m_create_user;
	}
	public void  setCreateUser(String v)
	{
		if(getCreateUser().equals(v)) return ;
		m_create_user = v ;
		markDirty(CREATE_USER);
	}



	

	public String getCreateTime()
	{
	    return m_create_time;
	}
	public void  setCreateTime(String v)
	{
		if(getCreateTime().equals(v)) return ;
		m_create_time = v ;
		markDirty(CREATE_TIME);
	}



	

	public String getLastUpdateUserId()
	{
	    return m_last_update_user_id;
	}
	public void  setLastUpdateUserId(String v)
	{
		if(getLastUpdateUserId().equals(v)) return ;
		m_last_update_user_id = v ;
		markDirty(LAST_UPDATE_USER_ID);
	}



	

	public String getLastUpdateUser()
	{
	    return m_last_update_user;
	}
	public void  setLastUpdateUser(String v)
	{
		if(getLastUpdateUser().equals(v)) return ;
		m_last_update_user = v ;
		markDirty(LAST_UPDATE_USER);
	}



	

	public String getLastUpdateTime()
	{
	    return m_last_update_time;
	}
	public void  setLastUpdateTime(String v)
	{
		if(getLastUpdateTime().equals(v)) return ;
		m_last_update_time = v ;
		markDirty(LAST_UPDATE_TIME);
	}



	

	public String getBalanceCustomerCode()
	{
	    return m_balance_customer_code;
	}
	public void  setBalanceCustomerCode(String v)
	{
		if(getBalanceCustomerCode().equals(v)) return ;
		m_balance_customer_code = v ;
		markDirty(BALANCE_CUSTOMER_CODE);
	}



	

	public String getOldApepCode()
	{
	    return m_old_apep_code;
	}
	public void  setOldApepCode(String v)
	{
		if(getOldApepCode().equals(v)) return ;
		m_old_apep_code = v ;
		markDirty(OLD_APEP_CODE);
	}



	

	public String getIsUpdate()
	{
	    return m_is_update;
	}
	public void  setIsUpdate(String v)
	{
		if(getIsUpdate().equals(v)) return ;
		m_is_update = v ;
		markDirty(IS_UPDATE);
	}


    public String getAuditingStatus()
    {   
        String  value = "";
        if( m_auditing_status.equals("0")){
            value = "未审核";
        }else if(m_auditing_status.equals("1")){
            value = "审核待修改";
        }else if(m_auditing_status.equals("2")){
            value = "审核通过";
        }else if(m_auditing_status.equals("3")){
            value = "审核不通过";

        }
        return value;
    }
    public void  setAuditingStatus(String v)
    {
        if(getAuditingStatus().equals(v)) return ;
        m_auditing_status = v ;
        markDirty(AUDITING_STATUS);
    }
    
    
    public String getAuditingMessage()
    {
        return m_auditing_message;
    }
    public void  setAuditingMessage(String v)
    {
        if(getIsUpdate().equals(v)) return ;
        m_auditing_message = v ;
        markDirty(AUDITING_MESSAGE);
    }
	

	public double getPlanPrice()
	{
	    return m_plan_price;
	}
	public void  setPlanPrice(double v)
	{
		if(getPlanPrice()==v) return ;
		m_plan_price = v ;
		markDirty(PLAN_PRICE);
	}

	public String getKmQualityAssurePeriod() {
		return m_km_quality_assure_period;
	}
	public void setKmQualityAssurePeriod(String v) {
		m_km_quality_assure_period = v;
	}
	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewConcentricityCode(DBConnection con) throws Exception
	{
		return Value.view(getConcentricityCode());
	}

	public String viewApepCode(DBConnection con) throws Exception
	{
		return Value.view(getApepCode());
	}

	public String viewName(DBConnection con) throws Exception
	{
		return Value.view(getName());
	}

	public String viewCategoryCode(DBConnection con) throws Exception
	{
		return Value.view(getCategoryCode());
	}

	public String viewProductBrand(DBConnection con) throws Exception
	{
		return Value.view(getProductBrand());
	}

	public String viewModel(DBConnection con) throws Exception
	{
		return Value.view(getModel());
	}

	public String viewSpec(DBConnection con) throws Exception
	{
		return Value.view(getSpec());
	}

	public String viewUnitPrice(DBConnection con) throws Exception
	{
		return Value.view(getUnitPrice());
	}

	public String viewProductUnit(DBConnection con) throws Exception
	{
		return Value.view(getProductUnit());
	}

	public String viewQualityAssurePeriod(DBConnection con) throws Exception
	{
		return Value.view(getQualityAssurePeriod());
	}
	
	public String viewKmQualityAssurePeriod(DBConnection con) throws Exception
	{
		return Value.view(getKmQualityAssurePeriod());
	}

	public String viewManufaturer(DBConnection con) throws Exception
	{
		return Value.view(getManufaturer());
	}

	public String viewArea(DBConnection con) throws Exception
	{
		return Value.view(getArea());
	}

	public String viewProviderCode(DBConnection con) throws Exception
	{
		return Value.view(getProviderCode());
	}

	public String viewAdaptMachineType(DBConnection con) throws Exception
	{
		return Value.view(getAdaptMachineType());
	}

	public String viewPic(DBConnection con) throws Exception
	{
		return Value.view(getPic());
	}

	public String viewRecentAdjustpriceDate(DBConnection con) throws Exception
	{
		return Value.view(getRecentAdjustpriceDate());
	}

	public String viewRecentAdjustedPrice(DBConnection con) throws Exception
	{
		return Value.view(getRecentAdjustedPrice());
	}

	public String viewRecorderId(DBConnection con) throws Exception
	{
		return Value.view(getRecorderId());
	}

	public String viewRecordDate(DBConnection con) throws Exception
	{
		return Value.view(getRecordDate());
	}

	public String viewIsTradeflatProduct(DBConnection con) throws Exception
	{
		return Value.view(getIsTradeflatProduct());
	}

	public String viewAppenderProperty(DBConnection con) throws Exception
	{
		return Value.view(getAppenderProperty());
	}

	public String viewRemark(DBConnection con) throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewDrawingPieceCode(DBConnection con) throws Exception
	{
		return Value.view(getDrawingPieceCode());
	}

	public String viewBalanceMode(DBConnection con) throws Exception
	{
		return Value.view(getBalanceMode());
	}

	public String viewIsNormal(DBConnection con) throws Exception
	{
		return Value.view(getIsNormal());
	}

	public String viewWarehouseCode(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewIsBuy(DBConnection con) throws Exception
	{
		return Value.view(getIsBuy());
	}

	public String viewStatus(DBConnection con) throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId(DBConnection con) throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser(DBConnection con) throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime(DBConnection con) throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateTime());
	}

	public String viewBalanceCustomerCode(DBConnection con) throws Exception
	{
		return Value.view(getBalanceCustomerCode());
	}

	public String viewOldApepCode(DBConnection con) throws Exception
	{
		return Value.view(getOldApepCode());
	}

	public String viewIsUpdate(DBConnection con) throws Exception
	{
		return Value.view(getIsUpdate());
	}

	public String viewPlanPrice(DBConnection con) throws Exception
	{
		return Value.view(getPlanPrice());
	}
    public String viewAuditingStatus(DBConnection con) throws Exception
    {
        return Value.view(getAuditingStatus());
    }

   public String viewAuditingMessage(DBConnection con) throws Exception
   {
       return Value.view(getAuditingMessage());
   }
	


protected ProductBase()
{
}

public void fill(ProductPageData pageData) throws Exception
{

	if(pageData.getId()!=null)
	{	
		setId(pageData.getId());
	}

	if(pageData.getConcentricityCode()!=null)
	{	
		setConcentricityCode(pageData.getConcentricityCode());
	}

	if(pageData.getApepCode()!=null)
	{	
		setApepCode(pageData.getApepCode());
	}

	if(pageData.getName()!=null)
	{	
		setName(pageData.getName());
	}

	if(pageData.getCategoryCode()!=null)
	{	
		setCategoryCode(pageData.getCategoryCode());
	}

	if(pageData.getProductBrand()!=null)
	{	
		setProductBrand(pageData.getProductBrand());
	}

	if(pageData.getModel()!=null)
	{	
		setModel(pageData.getModel());
	}

	if(pageData.getSpec()!=null)
	{	
		setSpec(pageData.getSpec());
	}

	if( pageData.getUnitPrice()!=null && 
	   !pageData.getUnitPrice().equals(""))
	{	
		setUnitPrice(Double.parseDouble(pageData.getUnitPrice()));
	}

	if(pageData.getProductUnit()!=null)
	{	
		setProductUnit(pageData.getProductUnit());
	}

	if(pageData.getQualityAssurePeriod()!=null)
	{	
		setQualityAssurePeriod(pageData.getQualityAssurePeriod());
	}

	if(pageData.getManufaturer()!=null)
	{	
		setManufaturer(pageData.getManufaturer());
	}

	if(pageData.getArea()!=null)
	{	
		setArea(pageData.getArea());
	}

	if(pageData.getProviderCode()!=null)
	{	
		setProviderCode(pageData.getProviderCode());
	}

	if(pageData.getAdaptMachineType()!=null)
	{	
		setAdaptMachineType(pageData.getAdaptMachineType());
	}

	if(pageData.getPic()!=null)
	{	
		setPic(pageData.getPic());
	}

	if(pageData.getRecentAdjustpriceDate()!=null)
	{	
		setRecentAdjustpriceDate(pageData.getRecentAdjustpriceDate());
	}

	if( pageData.getRecentAdjustedPrice()!=null && 
	   !pageData.getRecentAdjustedPrice().equals(""))
	{	
		setRecentAdjustedPrice(Double.parseDouble(pageData.getRecentAdjustedPrice()));
	}

	if(pageData.getRecorderId()!=null)
	{	
		setRecorderId(pageData.getRecorderId());
	}

	if(pageData.getRecordDate()!=null)
	{	
		setRecordDate(pageData.getRecordDate());
	}

	if(pageData.getIsTradeflatProduct()!=null)
	{	
		setIsTradeflatProduct(pageData.getIsTradeflatProduct());
	}

	if(pageData.getAppenderProperty()!=null)
	{	
		setAppenderProperty(pageData.getAppenderProperty());
	}

	if(pageData.getRemark()!=null)
	{	
		setRemark(pageData.getRemark());
	}

	if(pageData.getDrawingPieceCode()!=null)
	{	
		setDrawingPieceCode(pageData.getDrawingPieceCode());
	}

	if(pageData.getBalanceMode()!=null)
	{	
		setBalanceMode(pageData.getBalanceMode());
	}

	if(pageData.getIsNormal()!=null)
	{	
		setIsNormal(pageData.getIsNormal());
	}

	if(pageData.getWarehouseCode()!=null)
	{	
		setWarehouseCode(pageData.getWarehouseCode());
	}

	if(pageData.getWarehouseName()!=null)
	{	
		setWarehouseName(pageData.getWarehouseName());
	}

	if(pageData.getIsBuy()!=null)
	{	
		setIsBuy(pageData.getIsBuy());
	}

	if(pageData.getStatus()!=null)
	{	
		setStatus(pageData.getStatus());
	}

	if(pageData.getCreateUserId()!=null)
	{	
		setCreateUserId(pageData.getCreateUserId());
	}

	if(pageData.getCreateUser()!=null)
	{	
		setCreateUser(pageData.getCreateUser());
	}

	if(pageData.getCreateTime()!=null)
	{	
		setCreateTime(pageData.getCreateTime());
	}

	if(pageData.getLastUpdateUserId()!=null)
	{	
		setLastUpdateUserId(pageData.getLastUpdateUserId());
	}

	if(pageData.getLastUpdateUser()!=null)
	{	
		setLastUpdateUser(pageData.getLastUpdateUser());
	}

	if(pageData.getLastUpdateTime()!=null)
	{	
		setLastUpdateTime(pageData.getLastUpdateTime());
	}

	if(pageData.getBalanceCustomerCode()!=null)
	{	
		setBalanceCustomerCode(pageData.getBalanceCustomerCode());
	}

	if(pageData.getOldApepCode()!=null)
	{	
		setOldApepCode(pageData.getOldApepCode());
	}

	if(pageData.getIsUpdate()!=null)
	{	
		setIsUpdate(pageData.getIsUpdate());
	}

	if( pageData.getPlanPrice()!=null && 
	   !pageData.getPlanPrice().equals(""))
	{	
		setPlanPrice(Double.parseDouble(pageData.getPlanPrice()));
	}
	
	   if(pageData.getAuditingStatus()!=null)
	    {   
	        setAuditingStatus(pageData.getAuditingStatus());
	    }
	    
       if(pageData.getAuditingMessage()!=null)
        {   
            setAuditingMessage(pageData.getAuditingMessage());
        }
       
	

}

public String getTableName() 
{
	return TABLE_NAME;
}

public String getBackupTableName() 
{
	return BACKUP_TABLE_NAME;
}

public String getBackupSeqName() 
{
	return BACKUP_SEQ_NAME;
}

public java.util.Vector getFields() 
{
	if(m_fields==null)
	{
		m_fields = new Vector();

		m_fields.add(new Field(ID,Value.TYPE_STRING,true,true,32,"序号"));

		m_fields.add(new Field(CONCENTRICITY_CODE,Value.TYPE_STRING,false,true,20,"集中编码"));

		m_fields.add(new Field(APEP_CODE,Value.TYPE_STRING,false,true,20,"产品编码(18位)"));

		m_fields.add(new Field(NAME,Value.TYPE_STRING,false,true,50,"产品名称"));

		m_fields.add(new Field(CATEGORY_CODE,Value.TYPE_STRING,false,true,20,"产品分类编码"));

		m_fields.add(new Field(PRODUCT_BRAND,Value.TYPE_STRING,false,false,50,"品牌"));

		m_fields.add(new Field(MODEL,Value.TYPE_STRING,false,false,200,"型号"));

		m_fields.add(new Field(SPEC,Value.TYPE_STRING,false,false,200,"规格"));

		m_fields.add(new Field(UNIT_PRICE,Value.TYPE_DOUBLE,false,true,0,"单价"));

		m_fields.add(new Field(PRODUCT_UNIT,Value.TYPE_STRING,false,true,20,"计量单位"));

		m_fields.add(new Field(QUALITY_ASSURE_PERIOD,Value.TYPE_STRING,false,false,500,"质保期"));

		m_fields.add(new Field(MANUFATURER,Value.TYPE_STRING,false,false,50,"生产厂家"));

		m_fields.add(new Field(AREA,Value.TYPE_STRING,false,false,50,"产地"));

		m_fields.add(new Field(PROVIDER_CODE,Value.TYPE_STRING,false,false,10,"供应商编码"));

		m_fields.add(new Field(ADAPT_MACHINE_TYPE,Value.TYPE_STRING,false,false,500,"适用机型"));

		m_fields.add(new Field(PIC,Value.TYPE_STRING,false,false,500,"图片"));

		m_fields.add(new Field(RECENT_ADJUSTPRICE_DATE,Value.TYPE_STRING,false,false,20,"最近调价时间"));

		m_fields.add(new Field(RECENT_ADJUSTED_PRICE,Value.TYPE_DOUBLE,false,false,0,"最近调价价格"));

		m_fields.add(new Field(RECORDER_ID,Value.TYPE_STRING,false,false,10,"录入人员账号"));

		m_fields.add(new Field(RECORD_DATE,Value.TYPE_STRING,false,true,20,"产品录入时间"));

		m_fields.add(new Field(IS_TRADEFLAT_PRODUCT,Value.TYPE_STRING,false,true,1,"是否交易平台的产品"));

		m_fields.add(new Field(APPENDER_PROPERTY,Value.TYPE_STRING,false,false,4000,"产品附加属性"));

		m_fields.add(new Field(REMARK,Value.TYPE_STRING,false,false,4000,"备注"));

		m_fields.add(new Field(DRAWING_PIECE_CODE,Value.TYPE_STRING,false,false,50,"图件号"));

		m_fields.add(new Field(BALANCE_MODE,Value.TYPE_STRING,false,false,1,"结算模式"));

		m_fields.add(new Field(IS_NORMAL,Value.TYPE_STRING,false,true,1,"是否正式产品"));

		m_fields.add(new Field(WAREHOUSE_CODE,Value.TYPE_STRING,false,false,20,"仓库编码"));

		m_fields.add(new Field(WAREHOUSE_NAME,Value.TYPE_STRING,false,false,50,"仓库名称"));

		m_fields.add(new Field(IS_BUY,Value.TYPE_STRING,false,true,1,"是否可采购"));

		m_fields.add(new Field(STATUS,Value.TYPE_STRING,false,true,1,"是否有效"));

		m_fields.add(new Field(CREATE_USER_ID,Value.TYPE_STRING,false,true,32,"创建人序号"));

		m_fields.add(new Field(CREATE_USER,Value.TYPE_STRING,false,true,50,"创建人"));

		m_fields.add(new Field(CREATE_TIME,Value.TYPE_STRING,false,true,20,"创建时间"));

		m_fields.add(new Field(LAST_UPDATE_USER_ID,Value.TYPE_STRING,false,true,32,"最后修改人序号"));

		m_fields.add(new Field(LAST_UPDATE_USER,Value.TYPE_STRING,false,true,50,"最后修改人"));

		m_fields.add(new Field(LAST_UPDATE_TIME,Value.TYPE_STRING,false,true,32,"最后修改时间"));

		m_fields.add(new Field(BALANCE_CUSTOMER_CODE,Value.TYPE_STRING,false,false,50,"BALANCE_CUSTOMER_CODE"));

		m_fields.add(new Field(OLD_APEP_CODE,Value.TYPE_STRING,false,false,20,"OLD_APEP_CODE"));

		m_fields.add(new Field(IS_UPDATE,Value.TYPE_STRING,false,false,1,"IS_UPDATE"));

		m_fields.add(new Field(PLAN_PRICE,Value.TYPE_DOUBLE,false,false,0,"PLAN_PRICE"));
		
		m_fields.add(new Field(AUDITING_STATUS,Value.TYPE_STRING,false,false,1,"PLAN_PRICE"));
		
		m_fields.add(new Field(AUDITING_MESSAGE,Value.TYPE_STRING,false,false,200,"PLAN_PRICE"));
		
	}
	return m_fields;
}

public void initObject(java.sql.ResultSet rs) throws Exception
{
	

	m_id = getString(rs,ID);

	m_concentricity_code = getString(rs,CONCENTRICITY_CODE);

	m_apep_code = getString(rs,APEP_CODE);

	m_name = getString(rs,NAME);

	m_category_code = getString(rs,CATEGORY_CODE);

	m_product_brand = getString(rs,PRODUCT_BRAND);

	m_model = getString(rs,MODEL);

	m_spec = getString(rs,SPEC);

	m_unit_price = getDouble(rs,UNIT_PRICE);

	m_product_unit = getString(rs,PRODUCT_UNIT);

	m_quality_assure_period = getString(rs,QUALITY_ASSURE_PERIOD);

	m_manufaturer = getString(rs,MANUFATURER);

	m_area = getString(rs,AREA);

	m_provider_code = getString(rs,PROVIDER_CODE);

	m_adapt_machine_type = getString(rs,ADAPT_MACHINE_TYPE);

	m_pic = getString(rs,PIC);

	m_recent_adjustprice_date = getString(rs,RECENT_ADJUSTPRICE_DATE);

	m_recent_adjusted_price = getDouble(rs,RECENT_ADJUSTED_PRICE);

	m_recorder_id = getString(rs,RECORDER_ID);

	m_record_date = getString(rs,RECORD_DATE);

	m_is_tradeflat_product = getString(rs,IS_TRADEFLAT_PRODUCT);

	m_appender_property = getString(rs,APPENDER_PROPERTY);

	m_remark = getString(rs,REMARK);

	m_drawing_piece_code = getString(rs,DRAWING_PIECE_CODE);

	m_balance_mode = getString(rs,BALANCE_MODE);

	m_is_normal = getString(rs,IS_NORMAL);

	m_warehouse_code = getString(rs,WAREHOUSE_CODE);

	m_warehouse_name = getString(rs,WAREHOUSE_NAME);

	m_is_buy = getString(rs,IS_BUY);

	m_status = getString(rs,STATUS);

	m_create_user_id = getString(rs,CREATE_USER_ID);

	m_create_user = getString(rs,CREATE_USER);

	m_create_time = getString(rs,CREATE_TIME);

	m_last_update_user_id = getString(rs,LAST_UPDATE_USER_ID);

	m_last_update_user = getString(rs,LAST_UPDATE_USER);

	m_last_update_time = getString(rs,LAST_UPDATE_TIME);

	m_balance_customer_code = getString(rs,BALANCE_CUSTOMER_CODE);

	m_old_apep_code = getString(rs,OLD_APEP_CODE);

	m_is_update = getString(rs,IS_UPDATE);

	m_plan_price = getDouble(rs,PLAN_PRICE);

	ms_new_flag = ConstDefine.NO;
	
	m_auditing_status = getString(rs,AUDITING_STATUS);
	   
	m_auditing_message = getString(rs,AUDITING_MESSAGE);
	
	m_km_quality_assure_period = getString(rs,KM_QUALITY_ASSURE_PERIOD);

}

public Value get(String f)
{

	if(f.equalsIgnoreCase(ID))
	{
		return new Value(getId());
	}

	if(f.equalsIgnoreCase(CONCENTRICITY_CODE))
	{
		return new Value(getConcentricityCode());
	}

	if(f.equalsIgnoreCase(APEP_CODE))
	{
		return new Value(getApepCode());
	}

	if(f.equalsIgnoreCase(NAME))
	{
		return new Value(getName());
	}

	if(f.equalsIgnoreCase(CATEGORY_CODE))
	{
		return new Value(getCategoryCode());
	}

	if(f.equalsIgnoreCase(PRODUCT_BRAND))
	{
		return new Value(getProductBrand());
	}

	if(f.equalsIgnoreCase(MODEL))
	{
		return new Value(getModel());
	}

	if(f.equalsIgnoreCase(SPEC))
	{
		return new Value(getSpec());
	}

	if(f.equalsIgnoreCase(UNIT_PRICE))
	{
		return new Value(getUnitPrice());
	}

	if(f.equalsIgnoreCase(PRODUCT_UNIT))
	{
		return new Value(getProductUnit());
	}

	if(f.equalsIgnoreCase(QUALITY_ASSURE_PERIOD))
	{
		return new Value(getQualityAssurePeriod());
	}

	if(f.equalsIgnoreCase(MANUFATURER))
	{
		return new Value(getManufaturer());
	}

	if(f.equalsIgnoreCase(AREA))
	{
		return new Value(getArea());
	}

	if(f.equalsIgnoreCase(PROVIDER_CODE))
	{
		return new Value(getProviderCode());
	}

	if(f.equalsIgnoreCase(ADAPT_MACHINE_TYPE))
	{
		return new Value(getAdaptMachineType());
	}

	if(f.equalsIgnoreCase(PIC))
	{
		return new Value(getPic());
	}

	if(f.equalsIgnoreCase(RECENT_ADJUSTPRICE_DATE))
	{
		return new Value(getRecentAdjustpriceDate());
	}

	if(f.equalsIgnoreCase(RECENT_ADJUSTED_PRICE))
	{
		return new Value(getRecentAdjustedPrice());
	}

	if(f.equalsIgnoreCase(RECORDER_ID))
	{
		return new Value(getRecorderId());
	}

	if(f.equalsIgnoreCase(RECORD_DATE))
	{
		return new Value(getRecordDate());
	}

	if(f.equalsIgnoreCase(IS_TRADEFLAT_PRODUCT))
	{
		return new Value(getIsTradeflatProduct());
	}

	if(f.equalsIgnoreCase(APPENDER_PROPERTY))
	{
		return new Value(getAppenderProperty());
	}

	if(f.equalsIgnoreCase(REMARK))
	{
		return new Value(getRemark());
	}

	if(f.equalsIgnoreCase(DRAWING_PIECE_CODE))
	{
		return new Value(getDrawingPieceCode());
	}

	if(f.equalsIgnoreCase(BALANCE_MODE))
	{
		return new Value(getBalanceMode());
	}

	if(f.equalsIgnoreCase(IS_NORMAL))
	{
		return new Value(getIsNormal());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		return new Value(getWarehouseCode());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		return new Value(getWarehouseName());
	}

	if(f.equalsIgnoreCase(IS_BUY))
	{
		return new Value(getIsBuy());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		return new Value(getStatus());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		return new Value(getCreateUserId());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		return new Value(getCreateUser());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		return new Value(getCreateTime());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		return new Value(getLastUpdateUserId());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		return new Value(getLastUpdateUser());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		return new Value(getLastUpdateTime());
	}

	if(f.equalsIgnoreCase(BALANCE_CUSTOMER_CODE))
	{
		return new Value(getBalanceCustomerCode());
	}

	if(f.equalsIgnoreCase(OLD_APEP_CODE))
	{
		return new Value(getOldApepCode());
	}

	if(f.equalsIgnoreCase(IS_UPDATE))
	{
		return new Value(getIsUpdate());
	}

	if(f.equalsIgnoreCase(PLAN_PRICE))
	{
		return new Value(getPlanPrice());
	}
	
	   if (f.equalsIgnoreCase(AUDITING_STATUS)) {
            return new Value(getAuditingStatus());
        }

        if (f.equalsIgnoreCase(AUDITING_MESSAGE)) {
            return new Value(getAuditingMessage());
        }
	
	
	return null;
}
public void set(String f,Value v) throws Exception
{

	if(f.equalsIgnoreCase(ID))
	{
		setId(v.getString());
	}

	if(f.equalsIgnoreCase(CONCENTRICITY_CODE))
	{
		setConcentricityCode(v.getString());
	}

	if(f.equalsIgnoreCase(APEP_CODE))
	{
		setApepCode(v.getString());
	}

	if(f.equalsIgnoreCase(NAME))
	{
		setName(v.getString());
	}

	if(f.equalsIgnoreCase(CATEGORY_CODE))
	{
		setCategoryCode(v.getString());
	}

	if(f.equalsIgnoreCase(PRODUCT_BRAND))
	{
		setProductBrand(v.getString());
	}

	if(f.equalsIgnoreCase(MODEL))
	{
		setModel(v.getString());
	}

	if(f.equalsIgnoreCase(SPEC))
	{
		setSpec(v.getString());
	}

	if(f.equalsIgnoreCase(UNIT_PRICE))
	{
		setUnitPrice(v.getDouble());
	}

	if(f.equalsIgnoreCase(PRODUCT_UNIT))
	{
		setProductUnit(v.getString());
	}

	if(f.equalsIgnoreCase(QUALITY_ASSURE_PERIOD))
	{
		setQualityAssurePeriod(v.getString());
	}

	if(f.equalsIgnoreCase(MANUFATURER))
	{
		setManufaturer(v.getString());
	}

	if(f.equalsIgnoreCase(AREA))
	{
		setArea(v.getString());
	}

	if(f.equalsIgnoreCase(PROVIDER_CODE))
	{
		setProviderCode(v.getString());
	}

	if(f.equalsIgnoreCase(ADAPT_MACHINE_TYPE))
	{
		setAdaptMachineType(v.getString());
	}

	if(f.equalsIgnoreCase(PIC))
	{
		setPic(v.getString());
	}

	if(f.equalsIgnoreCase(RECENT_ADJUSTPRICE_DATE))
	{
		setRecentAdjustpriceDate(v.getString());
	}

	if(f.equalsIgnoreCase(RECENT_ADJUSTED_PRICE))
	{
		setRecentAdjustedPrice(v.getDouble());
	}

	if(f.equalsIgnoreCase(RECORDER_ID))
	{
		setRecorderId(v.getString());
	}

	if(f.equalsIgnoreCase(RECORD_DATE))
	{
		setRecordDate(v.getString());
	}

	if(f.equalsIgnoreCase(IS_TRADEFLAT_PRODUCT))
	{
		setIsTradeflatProduct(v.getString());
	}

	if(f.equalsIgnoreCase(APPENDER_PROPERTY))
	{
		setAppenderProperty(v.getString());
	}

	if(f.equalsIgnoreCase(REMARK))
	{
		setRemark(v.getString());
	}

	if(f.equalsIgnoreCase(DRAWING_PIECE_CODE))
	{
		setDrawingPieceCode(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_MODE))
	{
		setBalanceMode(v.getString());
	}

	if(f.equalsIgnoreCase(IS_NORMAL))
	{
		setIsNormal(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		setWarehouseCode(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		setWarehouseName(v.getString());
	}

	if(f.equalsIgnoreCase(IS_BUY))
	{
		setIsBuy(v.getString());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		setStatus(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		setCreateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		setCreateUser(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		setCreateTime(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		setLastUpdateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		setLastUpdateUser(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		setLastUpdateTime(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_CUSTOMER_CODE))
	{
		setBalanceCustomerCode(v.getString());
	}

	if(f.equalsIgnoreCase(OLD_APEP_CODE))
	{
		setOldApepCode(v.getString());
	}

	if(f.equalsIgnoreCase(IS_UPDATE))
	{
		setIsUpdate(v.getString());
	}

	if(f.equalsIgnoreCase(PLAN_PRICE))
	{
		setPlanPrice(v.getDouble());
	}
	
	   if(f.equalsIgnoreCase(AUDITING_STATUS))
	    {
	        setAuditingStatus(v.getString());
	    }
	   
	    if(f.equalsIgnoreCase(AUDITING_MESSAGE))
	    {
	        setAuditingMessage(v.getString());
	    }
	
}
public String toString()
{
	String msg = "Product=\n";
	msg += "(\r\n";

	msg += "    序号(id)="+get("id")+"\r\n";

	msg += "    集中编码(concentricity_code)="+get("concentricity_code")+"\r\n";

	msg += "    产品编码(18位)(apep_code)="+get("apep_code")+"\r\n";

	msg += "    产品名称(name)="+get("name")+"\r\n";

	msg += "    产品分类编码(category_code)="+get("category_code")+"\r\n";

	msg += "    品牌(product_brand)="+get("product_brand")+"\r\n";

	msg += "    型号(model)="+get("model")+"\r\n";

	msg += "    规格(spec)="+get("spec")+"\r\n";

	msg += "    单价(unit_price)="+get("unit_price")+"\r\n";

	msg += "    计量单位(product_unit)="+get("product_unit")+"\r\n";

	msg += "    质保期(quality_assure_period)="+get("quality_assure_period")+"\r\n";

	msg += "    生产厂家(manufaturer)="+get("manufaturer")+"\r\n";

	msg += "    产地(area)="+get("area")+"\r\n";

	msg += "    供应商编码(provider_code)="+get("provider_code")+"\r\n";

	msg += "    适用机型(adapt_machine_type)="+get("adapt_machine_type")+"\r\n";

	msg += "    图片(pic)="+get("pic")+"\r\n";

	msg += "    最近调价时间(recent_adjustprice_date)="+get("recent_adjustprice_date")+"\r\n";

	msg += "    最近调价价格(recent_adjusted_price)="+get("recent_adjusted_price")+"\r\n";

	msg += "    录入人员账号(recorder_id)="+get("recorder_id")+"\r\n";

	msg += "    产品录入时间(record_date)="+get("record_date")+"\r\n";

	msg += "    是否交易平台的产品(is_tradeflat_product)="+get("is_tradeflat_product")+"\r\n";

	msg += "    产品附加属性(appender_property)="+get("appender_property")+"\r\n";

	msg += "    备注(remark)="+get("remark")+"\r\n";

	msg += "    图件号(drawing_piece_code)="+get("drawing_piece_code")+"\r\n";

	msg += "    结算模式(balance_mode)="+get("balance_mode")+"\r\n";

	msg += "    是否正式产品(is_normal)="+get("is_normal")+"\r\n";

	msg += "    仓库编码(warehouse_code)="+get("warehouse_code")+"\r\n";

	msg += "    仓库名称(warehouse_name)="+get("warehouse_name")+"\r\n";

	msg += "    是否可采购(is_buy)="+get("is_buy")+"\r\n";

	msg += "    是否有效(status)="+get("status")+"\r\n";

	msg += "    创建人序号(create_user_id)="+get("create_user_id")+"\r\n";

	msg += "    创建人(create_user)="+get("create_user")+"\r\n";

	msg += "    创建时间(create_time)="+get("create_time")+"\r\n";

	msg += "    最后修改人序号(last_update_user_id)="+get("last_update_user_id")+"\r\n";

	msg += "    最后修改人(last_update_user)="+get("last_update_user")+"\r\n";

	msg += "    最后修改时间(last_update_time)="+get("last_update_time")+"\r\n";

	msg += "    BALANCE_CUSTOMER_CODE(balance_customer_code)="+get("balance_customer_code")+"\r\n";

	msg += "    OLD_APEP_CODE(old_apep_code)="+get("old_apep_code")+"\r\n";

	msg += "    IS_UPDATE(is_update)="+get("is_update")+"\r\n";

	msg += "    PLAN_PRICE(plan_price)="+get("plan_price")+"\r\n";
	
	msg += "    AUDITING_STATUS(auditing_status)="+get("auditing_status")+"\r\n";
	
	msg += "    AUDITING_MESSAGE(auditing_message)="+get("auditing_message")+"\r\n";
	
	msg += ")\r\n";
	return msg;
}
public void copyBase(ProductBase srcObj)
{

	setConcentricityCode(srcObj.getConcentricityCode());

	setApepCode(srcObj.getApepCode());

	setName(srcObj.getName());

	setCategoryCode(srcObj.getCategoryCode());

	setProductBrand(srcObj.getProductBrand());

	setModel(srcObj.getModel());

	setSpec(srcObj.getSpec());

	setUnitPrice(srcObj.getUnitPrice());

	setProductUnit(srcObj.getProductUnit());

	setQualityAssurePeriod(srcObj.getQualityAssurePeriod());

	setManufaturer(srcObj.getManufaturer());

	setArea(srcObj.getArea());

	setProviderCode(srcObj.getProviderCode());

	setAdaptMachineType(srcObj.getAdaptMachineType());

	setPic(srcObj.getPic());

	setRecentAdjustpriceDate(srcObj.getRecentAdjustpriceDate());

	setRecentAdjustedPrice(srcObj.getRecentAdjustedPrice());

	setRecorderId(srcObj.getRecorderId());

	setRecordDate(srcObj.getRecordDate());

	setIsTradeflatProduct(srcObj.getIsTradeflatProduct());

	setAppenderProperty(srcObj.getAppenderProperty());

	setRemark(srcObj.getRemark());

	setDrawingPieceCode(srcObj.getDrawingPieceCode());

	setBalanceMode(srcObj.getBalanceMode());

	setIsNormal(srcObj.getIsNormal());

	setWarehouseCode(srcObj.getWarehouseCode());

	setWarehouseName(srcObj.getWarehouseName());

	setIsBuy(srcObj.getIsBuy());

	setStatus(srcObj.getStatus());

	setCreateUserId(srcObj.getCreateUserId());

	setCreateUser(srcObj.getCreateUser());

	setCreateTime(srcObj.getCreateTime());

	setLastUpdateUserId(srcObj.getLastUpdateUserId());

	setLastUpdateUser(srcObj.getLastUpdateUser());

	setLastUpdateTime(srcObj.getLastUpdateTime());

	setBalanceCustomerCode(srcObj.getBalanceCustomerCode());

	setOldApepCode(srcObj.getOldApepCode());

	setIsUpdate(srcObj.getIsUpdate());

	setPlanPrice(srcObj.getPlanPrice());
	
	setAuditingStatus(srcObj.getAuditingStatus());
	
	setAuditingMessage(srcObj.getAuditingMessage());
}

public String toXml() throws Exception
{
	String xml = "";
	xml += "<Product>";

	xml += "<Id>"+Value.view(getId())+"</Id>";

	xml += "<ConcentricityCode>"+Value.view(getConcentricityCode())+"</ConcentricityCode>";

	xml += "<ApepCode>"+Value.view(getApepCode())+"</ApepCode>";

	xml += "<Name>"+Value.view(getName())+"</Name>";

	xml += "<CategoryCode>"+Value.view(getCategoryCode())+"</CategoryCode>";

	xml += "<ProductBrand>"+Value.view(getProductBrand())+"</ProductBrand>";

	xml += "<Model>"+Value.view(getModel())+"</Model>";

	xml += "<Spec>"+Value.view(getSpec())+"</Spec>";

	xml += "<UnitPrice>"+Value.view(getUnitPrice())+"</UnitPrice>";

	xml += "<ProductUnit>"+Value.view(getProductUnit())+"</ProductUnit>";

	xml += "<QualityAssurePeriod>"+Value.view(getQualityAssurePeriod())+"</QualityAssurePeriod>";

	xml += "<Manufaturer>"+Value.view(getManufaturer())+"</Manufaturer>";

	xml += "<Area>"+Value.view(getArea())+"</Area>";

	xml += "<ProviderCode>"+Value.view(getProviderCode())+"</ProviderCode>";

	xml += "<AdaptMachineType>"+Value.view(getAdaptMachineType())+"</AdaptMachineType>";

	xml += "<Pic>"+Value.view(getPic())+"</Pic>";

	xml += "<RecentAdjustpriceDate>"+Value.view(getRecentAdjustpriceDate())+"</RecentAdjustpriceDate>";

	xml += "<RecentAdjustedPrice>"+Value.view(getRecentAdjustedPrice())+"</RecentAdjustedPrice>";

	xml += "<RecorderId>"+Value.view(getRecorderId())+"</RecorderId>";

	xml += "<RecordDate>"+Value.view(getRecordDate())+"</RecordDate>";

	xml += "<IsTradeflatProduct>"+Value.view(getIsTradeflatProduct())+"</IsTradeflatProduct>";

	xml += "<AppenderProperty>"+Value.view(getAppenderProperty())+"</AppenderProperty>";

	xml += "<Remark>"+Value.view(getRemark())+"</Remark>";

	xml += "<DrawingPieceCode>"+Value.view(getDrawingPieceCode())+"</DrawingPieceCode>";

	xml += "<BalanceMode>"+Value.view(getBalanceMode())+"</BalanceMode>";

	xml += "<IsNormal>"+Value.view(getIsNormal())+"</IsNormal>";

	xml += "<WarehouseCode>"+Value.view(getWarehouseCode())+"</WarehouseCode>";

	xml += "<WarehouseName>"+Value.view(getWarehouseName())+"</WarehouseName>";

	xml += "<IsBuy>"+Value.view(getIsBuy())+"</IsBuy>";

	xml += "<Status>"+Value.view(getStatus())+"</Status>";

	xml += "<CreateUserId>"+Value.view(getCreateUserId())+"</CreateUserId>";

	xml += "<CreateUser>"+Value.view(getCreateUser())+"</CreateUser>";

	xml += "<CreateTime>"+Value.view(getCreateTime())+"</CreateTime>";

	xml += "<LastUpdateUserId>"+Value.view(getLastUpdateUserId())+"</LastUpdateUserId>";

	xml += "<LastUpdateUser>"+Value.view(getLastUpdateUser())+"</LastUpdateUser>";

	xml += "<LastUpdateTime>"+Value.view(getLastUpdateTime())+"</LastUpdateTime>";

	xml += "<BalanceCustomerCode>"+Value.view(getBalanceCustomerCode())+"</BalanceCustomerCode>";

	xml += "<OldApepCode>"+Value.view(getOldApepCode())+"</OldApepCode>";

	xml += "<IsUpdate>"+Value.view(getIsUpdate())+"</IsUpdate>";

	xml += "<PlanPrice>"+Value.view(getPlanPrice())+"</PlanPrice>";
	
	xml += "<AuditingStatus>"+Value.view(getAuditingStatus())+"</AuditingStatus>>";
	
	xml += "<AuditingMessage>"+Value.view(getAuditingMessage())+"</AuditingMessage>";
	
	xml += "</Product>";
	return xml;
}

}
